package br.com.cacamba.mb;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

import br.com.cacamba.dao.DAO;
import br.com.cacamba.model.Cacamba;

@RequestScoped
@ManagedBean
public class TesteBean {
	private Cacamba cacamba= new Cacamba();

	public void grava(){
		new DAO<Cacamba>(Cacamba.class).adiciona(this.cacamba);
		System.out.println("gravando cacamba");
	}
	
	
	public Cacamba getCacamba() {
		return this.cacamba;
	}

	public void setCacamba(Cacamba cacamba) {
		this.cacamba = cacamba;
	}
	
	
}
